how membership operator works in python